package com.afdor.rws.annotation.extension;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 扩展点实例激活点
 *
 * @author 悭梵
 * @date Created in 2018-09-12 11:39
 */
@Inherited
@Documented
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface Activation {
    /**
     * 名称
     *
     * @return
     */
    String value() default "";

    /**
     * 待激活扩展点接口名称
     *
     * @return
     */
    Class interfaceClass() default Object.class;
}
